package com.cykj.controller;

import dev.langchain4j.model.openai.OpenAiChatModel;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @BelongsProject: smart_recruit_backend
 * @BelongsPackage: com.cykj.controller
 * @Author: 张昌煜
 * @CreateTime: 2025-08-27 09:32
 * @Description: TODO
 * @Version: 1.0
 */
@RestController
@RequestMapping("body")
@Tag(name = "body参数")
public class TestController {

    @Autowired
    private OpenAiChatModel openAiChatModel;
    @GetMapping("test")
    public String test(@RequestParam("address") String address) {
        String answer = openAiChatModel.chat(address);
        return answer;
    }
}
